<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>货物配送系统</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/css/readerTyper.css" />
</head>
<body style="font-size:20px">
<%@ include file="navigation.jsp" %>
<div id="content">
		<p valign="top" id="p">当前位置：车辆管理&gt; 车队管理 &gt;&gt;修改车辆信息
			&gt;&gt;&gt;</p>
		<div>
			<form method="post"
				action="${pageContext.request.contextPath}/updcar.do">
				<table border="1" cellpadding="0" cellspacing="0">
					<tr>
						<td class="t1">车牌号：</td>
						<td><input name="carId" type="text" id="carId" class="c1"
							placeholder="请输入" value="${car.carId}" required />*</td>
						<td><div id="idDiv" style="display: inline"></div></td>
					</tr>
					<tr>
						<td class="t1">最近停靠站：</td>
						<td><input name="location" type="text" class="c1" id="location" value="${car.location}" required>
							*</td>
						<td><div id="location" style="display: inline"></div></td>
					</tr>
					<tr>
						<td class="t1">当前状态：</td>
						<td><select name="status" id="status" value="${car.status}"
							class="c1">
								<option value="${car.status}">${car.status}</option>
								<option value="stop">停靠</option>
								<option value="way">在途</option>
						</select></td>
					</tr>
					<!-- 这里需要设置，使得下拉列表中可以显示所有的类型 -->
					<tr>
						<td class="t1">车辆类型：</td>
						<td><select name="carType" class="c1" id="carType" value="${car.carType}">
								<option value="${car.carType}">${car.carType}</option>
								<c:forEach items="${types}" var="t">
								<option value="${t.carTypeName}">${t.carTypeName}</option>
								</c:forEach>
						</select></td>
					</tr>

					<tr>
						<td class="t1">当前装载量：</td>
						<td><input name="carCurrent" type="text" id="carCurrent" class="c1" value="${car.carCurrent}"></td>
					</tr>
					<tr>
						<td class="t1">操作：</td>
						<td><input name="Submit" type="submit" value="保存" class="c1">
							&nbsp; <input name="Submit2" type="button" value="返回"
							onClick="history.back()" class="c1"></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</body>
</html>